﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace studentskicentarETFa
{
    partial class DAL
                {
                    public class DAOFactory            
                    {
                        private static DAOFactory instanca = null;
                        public static DAOFactory Instanca
                        {
                            get { return (instanca == null) ? instanca = new DAOFactory() : instanca; }
                        }

                        private DAOFactory() { }

                        public TerminDAO getTerminDAO()
                        {
                            return new TerminDAO();
                        }
                        public StudentDAO getStudentDAO()
                        {
                            return new StudentDAO();
                        }
                        public PredmetDAO getPredmetDAO()
                        {
                            return new PredmetDAO();
                        }
                        public ZaposlenikDAO getZaposlenikDAO()
                        {
                            return new ZaposlenikDAO();
                        }
                        public InstruktivnaNastavaDAO getInstruktivnaNastavaDAO()
                        {
                            return new InstruktivnaNastavaDAO();
                        }


       }
    }

 }
 
